Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheduler: Log process info when its affinity cannot be changed and re-check blacklisted cgroups #717

Merged
merged 2 commits into from
Jan 18, 2025

Conversation

zacikpa
Copy link
Contributor

@zacikpa zacikpa commented Dec 6, 2024

Include the current affinity of the process, its cmdline, and its cgroups in the logs. This may help identify issues with tuning, e.g., in cases when the process disappears soon after affining it fails.

Resolves: RHEL-69933

Update: It may happen that a process gets moved into a blacklisted cgroup
after the initial filtering of processes according to the blacklist.
When setting its affinity fails, re-check whether that is the case,
and if yes, ignore the error.

Resolves: RHEL-72981

Include its current affinity, cmdline, and cgroup. This may help
identify issues with tuning, e.g., in cases when the process
disappears soon after affining it fails.

Resolves: RHEL-69933
@zacikpa zacikpa changed the title scheduler: Log process info when its affinity cannot be changed scheduler: Log process info when its affinity cannot be changed and re-check blacklisted cgroups Jan 15, 2025
@zacikpa zacikpa force-pushed the affinity-error-logs branch from a6ff726 to 30d9a34 Compare January 15, 2025 15:12
@zacikpa zacikpa requested a review from yarda January 16, 2025 09:10
@zacikpa zacikpa force-pushed the affinity-error-logs branch from 30d9a34 to d74e8d4 Compare January 16, 2025 12:36
@zacikpa
Copy link
Contributor Author

zacikpa commented Jan 16, 2025

One more update per discussion with @MarSik: do the cgroup blacklist check as close to the affinity setting as possible to minimize the race window. I removed the initial blacklist filtering, but feel free to comment on that; we can keep it for efficiency.

It may happen that a process gets moved into a blacklisted cgroup
when TuneD is already applying a profile. Postpone the filtering of
processes according to the blacklist to the last possible moment to
minimize the race window.

When setting process affinity fails, re-check whether the process
belongs to a blacklisted cgroup once again and do not report an
error if that's the case.

Resolves: RHEL-72981
@zacikpa zacikpa force-pushed the affinity-error-logs branch from d74e8d4 to 7113c91 Compare January 16, 2025 12:44
Copy link
Contributor

@yarda yarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@MarSik
Copy link
Contributor

MarSik commented Jan 17, 2025

/lgtm

@yarda yarda merged commit 2a1bb41 into redhat-performance:master Jan 18, 2025
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants